<?php session_start();?>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<?php
/*
echo "<pre>";
print_r($_POST);
echo "</pre>";
exit;*/
require_once("../mysql.php");
require_once("function_quantri.php");

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 * 
 */
                $idSP = $_POST['idSP'];
		$tinhnangnoibac = $_POST['tinh_nang_noi_bat'];
		$mayanh = $_POST['may_anh'];
		$dactinhmayanh = $_POST['dac_tinh_may_anh'];
		$mayanhphu = $_POST['may_phu_anh'];
		$videocall = $_POST['video_call'];
		$quayphim = $_POST['quay_phim'];
		$xemphim = $_POST['xem_phim'];
		$nghenhac = $_POST['nghe_nhac'];
		$fmradio = $_POST['fm_radio'];
		$xemtivi = $_POST['xem_tivi'];
		$ghiam = $_POST['ghi_am'];
		$ghiamcuocgoi = $_POST['ghi_am_cuoc_goi'];
		$ghiamfm = $_POST['ghi_am_fm'];
		$java = $_POST['java'];
		$trochoi = $_POST['tro_choi'];
		$ketnoitv = $_POST['ket_noi_tv'];
		$ungdungvanphong = $_POST['ung_dung_van_phong'];
		$ungdungkhac = $_POST['ung_dung_khac'];
		$nhacchuongloai =$_POST['nhacchuong_loai'];
		$nhacchuongloangoai = $_POST['nhacchuong_loa_ngoai'];
		$nhacchuongbaorung = $_POST['nhacchuong_bao_rung'];
		$nhacchuongjacktainghe  =$_POST['nhacchuong_jack_tai_nghe'];
		$bonhotrong =$_POST['bonho_bo_nho_trong'];
		$bonhoram	=$_POST['bonho_ram'];
		$bonhovixuly = $_POST['bonho_vi_xu_ly_cpu'];
		$bonhothenhongoai = $_POST['bonho_the_nho_ngoai'];
		$bonhotoida = $_POST['bonho_ho_tro_the_toi_da'];
		$tinnhan = $_POST['tin_nhan'];
                
                
          $result=Themthuoctinh($idSP,$tinhnangnoibac,$mayanh,$dactinhmayanh,$mayanhphu,$videocall,$quayphim,$xemphim,$nghenhac,
                            $fmradio,$xemtivi,$ghiam,$ghiamcuocgoi,$ghiamfm,$java,$trochoi,$ketnoitv,
                            $ungdungvanphong,$ungdungkhac,$nhacchuongloai,$nhacchuongloangoai,$nhacchuongbaorung,$nhacchuongjacktainghe,
                            $bonhotrong,$bonhoram,$bonhovixuly,$bonhothenhongoai,$bonhotoida,$tinnhan);
          
          if($result)
              echo "Thành công";
			  header("location:Sanpham_thuoctinh.php");
          else
              echo "Thất bại".  mysql_error();
            
?>
